import { PropsWithChildren } from "react";
import getAdminViewer from "@/hooks/auth/getAdminViewer";
import ClientLayout from "./ClientLayout";

const AdminLayout = async ({ children }: PropsWithChildren) => {
  const user = await getAdminViewer();
  return <ClientLayout user={user}>{children}</ClientLayout>;
};
export default AdminLayout;
